package cn.com.utt.unms.service;

import java.util.List;
import org.springframework.stereotype.Service;
import cn.com.utt.common.vo.RestResult;
import cn.com.utt.common.vo.TableInput;
import cn.com.utt.common.vo.TableOutput;
import cn.com.utt.unms.pojo.Location;
import cn.com.utt.unms.pojo.Network;
import cn.com.utt.unms.vo.NetworkInfo;
import cn.com.utt.unms.vo.NetworkInput;

@Service
public interface NetworkService {

	RestResult add(NetworkInput networkInput, long userGroupId);

	RestResult update(NetworkInput networkInput, long userGroupId);
	
	RestResult updateName(Network network);

	RestResult delete(List<Long> networkIds);

	TableOutput<NetworkInfo> queryList(TableInput input, long userGroupId);

	boolean hasRight(long userGroupId, List<Long> networkIds);

	List<Network> queryByIds(List<Long> networkIds);
	
	Location queryLocation(long locationId);
	
}
